#!/bin/sh
npm run start:prod
# counter=0
# while [ $counter -lt 30 ]; do
#   response=$(curl --write-out "%{http_code}" --silent --output /dev/null http://localhost:3000/health)
#   if [ $response -eq 200 ]; then
#     echo "NestJS application is ready"
#     break
#   fi
#   sleep 1
#   counter=$((counter+1))
# done
sleep 5
exec "$@"
